
//
//  Person.m
//  AnimalProject
//
//  Created by Yiqiao on 15/4/20.
//  Copyright (c) 2015年 Yiqiao. All rights reserved.
//

#import "Person.h"


@implementation Person

- (id)initWithName:(NSString *)name AndPersonAge:(NSInteger)personage AndDogAge:(NSInteger)age AndColor:(NSString *)color AndHeight:(NSInteger)height AndDistance:(NSInteger)distance{
    _name = name;
    _age = personage;
    _mydog =[[Dog alloc] initWithAge:age AndColor:color AndHeight:height AndDistance:distance];
    return self;
}

- (NSString *)description{
    return [NSString stringWithFormat:@"PersonAndDogInfo:name: %@ age: %li %@",self->_name,self->_age, [_mydog description]];
}
@end
